"""
RedFire Services Package
========================

This package provides access to all RedFire microservices.
"""

# Import services with proper name mapping
# Handle the dash-to-underscore conversion for service names

import sys
from pathlib import Path

# Add service paths to sys.path for proper importing
current_dir = Path(__file__).parent
services_dir = current_dir

# Map service directory names to importable names
SERVICE_NAME_MAP = {
    'user_service': 'user_service',
    'trading_service': 'trading-service', 
    'market_data_service': 'market-data-service',
    'api_gateway': 'api-gateway',
    'notification_service': 'notification-service',
    'monitoring_service': 'monitoring-service'
}

# Add each service to sys.path
for import_name, dir_name in SERVICE_NAME_MAP.items():
    service_path = services_dir / dir_name
    if service_path.exists():
        sys.path.insert(0, str(service_path))

__all__ = list(SERVICE_NAME_MAP.keys())
